natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
In set-level foundations, there are two ways to compare two objects of a category for sameness: by equality or by isomorphism. The principle of equivalence argues that isomorphism is the “correct” notion of “sameness” for objects of a category, but the notion of equality is still present to be ignored.
Note that even in a skeletal category, where the mere property of “being isomorphic” coincides with the property of “being equal”, one cannot collapse the notions of isomorphism and equality because an object can still be isomorphic to itself in more than one way. This distinction only disappears in a gaunt category, but not every category is equivalent to a gaunt one.
By contrast, in higher foundations, it is possible to expand the notion of “equality” so that it coincides with isomorphism: just as two objects can be isomorphic in more than one way, they can also be equal in more than one way. The notion of “category” in which equality and isomorphism coincide in this way is called univalent or saturated. This is an analogue for 1-categories of imposing antisymmetry on a preordered set (a.k.a. a (0,1)-category) to obtain a partially ordered set (a.k.a. a skeletal or gaunt (0,1)-category).
Since we are talking about 1-categories whose hom-types are h-sets, in a univalent category the type of objects is a 1-type. By contrast, a “precategory” in higher foundations maintains equality of objects (which can have arbitrary h-level) as separate from isomorphism, while a “strict category” requires that the type of objects form a set.
We work in a dependent type theory with some notion of identity type or path type, denoted . If is a precategory and , we write for the type of isomorphisms from to .
There is a map
By induction on identity, we may assume and are the same. But then we have , which is clearly an isomorphism.
A univalent category or saturated category is a precategory which is Rezk complete, meaning that the above canonical function
an equivalence of types.
In homotopy type theory, univalent categories are arguably the best notion of “category”. Specifically, in HoTT/UF:
For these reasons, some of the HoTT/UF literature (including the HoTT Book) refers to univalent categories as simply “categories”.
The situation in plain intensional type theory is less clear, since without the univalence axiom, naturally-occurring precategories cannot be shown to be univalent (or strict) and the Rezk completion need not exist. Thus, in this case precategories seem unavoidable. Fortunately, a surprising amount of category theory can be developed with precategories.
(To be completely precise, the notion of “univalent category” can also be defined in set-level foundations. In that case it turns out to be equivalent to the notion of gaunt category, which again is not satisfactory as a general notion of “category”. More generally, a strict category is univalent if and only if it is gaunt.)
On this page we will not use the plain term “category” at all, but speak only of “precategories”, “univalent categories”, and “strict categories”.
Most nLab pages about category theory are, and should remain, written in a fairly foundation-agnostic way. If the reader is interpreting them in HoTT/UF, it is usually best to read “category” as meaning “univalent category” for the reasons above. However, in many cases it is also possible to read it as meaning “precategory” or “strict category”, as would be necessary if interpreting them in plain intensional type theory.
It is not usually necessary for pages about ordinary category theory to remark on this issue at all. However, if there are subtleties regarding the choice of interpretation (e.g. if some construction, such as a Kleisli category, may lead out of the world of univalent categories; or if some structure, such as a dagger category, requires changing the notion of “univalence”), it is appropriate to include a remark. Such a remark should generally be lower down on the page, not at the top, so that it doesn’t confuse first-time readers.
Note: All categories given can become univalent via the Rezk completion.
As noted above, every gaunt category is a strict univalent category, or equivalently a skeletal univalent category.
There is a precategory Set, whose type of objects is , and with . The univalence axiom implies that this is a univalent category. One can also show from this that any precategory of set-level structures such as groups, rings topological spaces, etc. is also univalent.
For any 1-type , there is a univalent category with as its type of objects and with . If is a set we call this the discrete category on . In general, we call it a (univalent) groupoid.
More generally, or any type , there is a precategory with as its type of objects and with . The composition operation
is defined by induction on truncation from concatenation of the identity type. We call this the fundamental pregroupoid of . It is univalent if and only if is a 1-type; its Rezk completion is the fundamental (univalent) groupoid of .
There is a precategory whose type of objects is the type universe and with , and composition defined by induction on truncation from ordinary composition of functions. We call this the homotopy precategory of types; it is not univalent (although it contains the univalent category Set as a sub-precategory).
Given two categories and , if is univalent, then the functor category is univalent.
Let and be functors from to .
Suppose that is a natural isomorphism. Then for any object , there is an isomorphism in . Since is univalent, this shows that for all objects , and by function extensionality, that .
Now, for any and , the functions and are equal, because we established above that for all . Because the object functions and morphism functions of and are equal to each other, .
Thus, if there is an isomorphism , then .
this proof needs to be revised since it is missing the explicit identifications
An equivalent-on-objects functor between two precategories and is a functor where the object function is a equivalence of types.
A split essentially surjective functor between and is a functor where for every object , there is a specified object and an isomorphism .
A fully faithful functor is a functor such that each map on hom-sets is an equivalence of types.
These definitions are important for defining the two notions of equality for categories:
An isomorphism of categories is a fully faithful equivalent-on-objects functor.
An equivalence of categories is a fully faithful split essentially surjective functor. Equivalently, it is a functor which has a left adjoint such that the unit and counit are isomorphisms.
For univalent categories, isomorphism of categories and equivalence of categories coincide.
…
In a univalent category, the type of objects is a 1-type.
It suffices to show that for any , the type is a set. But is equivalent to which is a set.
There is a canonical way to turn a category into a univalent category via the Rezk completion.
The relation between Segal completeness (now often “Rezk completeness”) for internal categories in HoTT and the univalence axiom had been pointed out in
A comprehensive discussion for 1-categories then appeared in:
Exposition:
Benedikt Ahrens, Univalent categories and Rezk completion, talk at IRIT (2013) [pdf]
Amélia Liao, Univalent Category Theory, Homotopy Type Theory Electronic Seminar Talks, (October 2022) [video]
Implementation in Coq:
Coq code formalizing this includes the following:
and in cubical Agda:
Generalization to (n,1)-categories is discussed in
and, by different means, in
Emily Riehl, Michael Shulman, A type theory for synthetic -categories (arXiv:1705.07442)
Emily Riehl, The synthetic theory of ∞-categories vs the synthetic theory of ∞-categories, talk at Vladimir Voevodsky Memorial Conference 2018 (pdf)
Formalization of bicategories:
Lemmas and proofs above are taken from:
On monoidal univalent categories:
A formalization in HoTT-Agda of general (n,r)-categories for , defined as coinductive types of infinity-graphs, with operations defined by induction-coinduction, is implemented in
Last revised on March 12, 2024 at 04:09:12. See the history of this page for a list of all contributions to it.